package com.demo.resourcecode.c8database;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {

	public static void main(String[] args) {
		ApplicationContext act = new ClassPathXmlApplicationContext("jdbc.xml");
		UserService userService = (UserService)act.getBean("userService");
		Test t = new Test();
		t.setId(3);
		t.setName("zsl3");
		//userService.save(t);
		System.out.println(userService.getList());
		System.out.println(userService.get(2));
	}

}
